package com.shd.feign.client;

import com.shd.common.core.bean.ResultBean;
import com.shd.common.core.feign.Constant;
import com.shd.feign.dto.UserDto;
import com.shd.feign.fallback.UserRemoteFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "system-service",fallback = UserRemoteFallback.class)
public interface UserRemoteClient {
    @GetMapping(Constant.PREFIX+"/user")
    ResultBean<UserDto> getById(@RequestParam("id") int id);
}
